]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
tests: Use different suites
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 13 Jul 2023 22:40:09 +0000 (00:40 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 13 Jul 2023 22:56:26 +0000 (00:56 +0200)
This makes it easier to only run unit- or automation tests.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2845>

tests/meson.build

index d54bdbbbf06bb045e0d81a2f0a08e6ff5deee42c..df35080fe296a249be3475e3e5fd4a1ef1807516 100644 (file)
@@ -18,7 +18,7 @@ dbus_runner = configure_file(
   configuration: dbusrunnerconf,
 )
 
-tests = [
+unit_tests = [
     'highlighter',
     'insertSorted',
     'jsParse',
@@ -29,9 +29,10 @@ tests = [
     'versionCompare',
 ]
 
-foreach test : tests
+foreach test : unit_tests
   test(test, run_test,
     args: 'unit/@0@.js'.format(test),
+    suite: 'unit',
     workdir: meson.current_source_dir())
 endforeach
 
@@ -67,7 +68,8 @@ foreach shell_test : shell_tests
   test_name = shell_test['name']
   options = shell_test.get('options', [])
 
-  test('shell-' + test_name, dbus_runner,
+  test(test_name, dbus_runner,
+    suite: 'shell',
     args: [
       test_tool,
       '--headless',